﻿<Page x:Class="WpfPathExample.PolyQuadraticBezierSegment"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
    d:DesignHeight="480" d:DesignWidth="800"
	Title="PolyQuadraticBezierSegment">

    <Grid>
        <Grid Margin="50" Background="WhiteSmoke" >


            <TextBlock Text=" 表示一系列二次贝塞尔线段。
一个 QuadraticBezierSegment 对象可以有一个控制点和一个终点。一个 PolyQuadraticBezierSegment 对象实质上可以有无限个控制点，这些点和终点的值作为 Points 属性值提供。各个点是从 Points 字符串分析得来的。

"  VerticalAlignment="Center"/>

            <Path Stroke="Black" StrokeThickness="3" >
                <Path.Data>
                    <PathGeometry >
                        <PathFigure     >
                            <PolyQuadraticBezierSegment Points="200,200 300,100 0,200 30,400" />
                        </PathFigure>
                    </PathGeometry>
                </Path.Data>
            </Path>

            <Path Stroke="Blue" StrokeThickness="3" >
                <Path.Data>
                    <PathGeometry >
                        <PathFigure  >
                            <PolyLineSegment Points="200,200 300,100 0,200 30,400" />
                        </PathFigure>
                    </PathGeometry>
                </Path.Data>
            </Path>
        </Grid>
    </Grid>
</Page>
